<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

$TCA['post'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_post.xml:post',
		'label'				=> 'bodytext',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/post.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_post.gif',
		'searchFields'	=>	'bodytext',
	)
);

$TCA['topic'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_topic.xml:topic',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/topic.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_topic.gif',
		'searchFields'	=>	'title,description',
	)
);

?>